import request from "@/config/axios";

const baseUrl = "http://localhost:3000/dev-api/societyApplies";

// 获取创建社团申请列表
export const fetchGetSocietyAppliesList = (params: {
  name?: string | undefined;
  type?: (0 | 1) | undefined;
  cardEnable?: (0 | 1) | undefined;
  currentPage: number;
  pageSize?: number | undefined;
  college?: number | undefined;

  major?: number | undefined;
  grade?: number | undefined;
  gender?: number | undefined;
  stuCode?: string | undefined;
}): Promise<IResponse> => {
  return request.get({ url: `${baseUrl}/list`, params });
};

// 审批社团申请
export const fetchPutSocietyApplies = (data) => {
  return request.put({ url: `${baseUrl}/check`, data })
}
